package com.java.exer_6;

import javax.swing.*;
import java.util.List;

public class CityMgrEvent implements Event {
    private static final float RATE = 0.1f;

    @Override
    public void event(Player player, List<Product> marketProList) {
        JOptionPane.showMessageDialog(null, "由于随意摆摊，你被城管大妈抓住了，罚款现金的10%");
        player.setMoney(Math.round(player.getMoney() * (1 - RATE)));
    }
}
